package com.gilgamesh.mall.order.service.impl;

import com.gilgamesh.mall.order.client.OrderUserClient;
import com.gilgamesh.mall.order.service.OrderUserService;
import com.gilgamesh.mall.sdk.bean.member.UserEntity;
import com.gilgamesh.mall.sdk.dto.ResponseDTO;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author yanm
 * @date 2021/1/12 19:41
 **/
@Service
@Slf4j
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class OrderUserServiceImpl implements OrderUserService {

    private final OrderUserClient orderUserClient;

    @Override
    public ResponseDTO<Integer> add(UserEntity user){
        return orderUserClient.add(user);
    }



}
